﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WMSSystem
{
    /// <summary>
    /// 标准返回值
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class ApiResponse<T>
    {
        public ErrorCode Code { get; set; } = ErrorCode.Fail;
        public string Message { get; set; } = "失败";
        public T Data { get; set; }
    }
    /// <summary>
    /// 分页响应码
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class ApiPaggingResponse<T>: ApiResponse<T>
    {
      public int TotalCount { get; set; } = 0;
        public List<T> PageDatas { get; set; }
    }
}
